package com.haoze.nurseapp.service.feign;

import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@Headers("Content-Type:application/json")
@FeignClient(name = "api-base")
public interface JwtService {
    @RequestMapping(value = "/jwt/getToken", method = RequestMethod.GET)
    String getToken(@RequestParam("account") String account, @RequestParam("id") String id, @RequestParam("auth") String auth,@RequestParam("deviceType") String deviceType);

    @RequestMapping(value = "/jwt/removeToken", method = RequestMethod.GET)
    void removeToken(@RequestParam("account") String account);
}